<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>根据用户名弹出欢迎对话框</title>
<script type="text/javascript">
var name=prompt("请输入你的姓名：","");
alert(name+"您好！\n欢迎进入JavaScript世界");
</script>

</head>

<body>
</body>
</html>
